$(function(){
$.ajax({
    type: "get",
    url: "http://193.112.55.79:9090/api/getinlanddiscount",
    dataType: "json",
    success: function (res) {
        console.log(res);
        // var html = template("需要渲染的scriptID")
        var html = template("discount", res.result);
        // 渲染到哪里的id或者class
        $(".discount_l").html(html);
    }
})
})